function foo(...arg: (string | number)[]) {
  console.log(arg);
}
foo(123, 321);
foo("abc", 111, "cba");
